                <!-- table -->
				<div class="box">
					<!-- box / title -->
					<div class="title">
						<h5>
                            <?=$title;?>
                            <?php if($month!='-')
                                echo 'Periode '.month_name($month);
                            ?>
                        </h5>
						<div class="search">
                        <?php if($month!='-'): ?>
                            <?=form_open('billing-ar/daily_record/getEVCExport')?>
								<div class="input">
                                    <label class="search"><?=lang('export')?></label>
									<?=form_dropdown('export',config('export'))?>
								</div>
								<div class="button">
									<?=form_submit('submit',lang('export'))?>
								</div>
							<?=form_close()?>
                        
                        <?php else:?>
                            <?=form_open('billing-ar/daily_record/getEVC')?>
								
                                <div class="input">
                                    <?=form_dropdown('month',config('month'),date('m'))?>
                                    <?=form_dropdown('year',config('year'),date('Y'))?>
								</div>
     
                                <div class="input">
									<?=form_dropdown('customer',$customers,'','style="width:150px"')?>
								</div>
								<div class="button">
									<input type="submit" name="submit" value="Search" />
								</div>
							<?=form_close()?>
                         <?php endif;?>   
						</div>
					</div>
					<!-- end box / title -->
					<div class="table">
                    
                        <?php if($this->session->flashdata('success')):?>
						<div id="message-success" class="message message-success">
							<div class="image">
								<img src="resources/images/icons/success.png" alt="Success" height="32" />
							</div>
							<div class="text">
								<h6>Send Email</h6>
								<span>Send Email Success to Recipient , to Edit email set to Settings Menu !</span>
							</div>
							<div class="dismiss">
									<a href="#message-success"></a>
							</div>
						</div>
						<?php elseif($this->session->flashdata('error')):?>
						<div id="message-error" class="message message-error">
								<div class="image">
									<img src="resources/images/icons/error.png" alt="Error" height="32" />
								</div>
								<div class="text">
									<h6>Send Email</h6>
									<span>Send Email Error to Recipient , to Edit email set to Settings Menu !</span>
								</div>
								<div class="dismiss">
									<a href="#message-error"></a>
								</div>
						</div>
						<?php endif;?>
                        
                        <?php if(COUNT($head)):?>
						<table>
                            <thead>
                                <tr>
                                    <td>Customer Name</td>
                                    <td><?=$head['Perusahaan']?></td>
                                    <td>Area</td>
                                    <td><?=$head['CustomerGroup']?></td>
                                </tr>
                                <tr>
                                    <td>Identity of MR/S</td>
                                    <td><?=$head['MRS']?></td>
                                    <td>Year</td>
                                    <td><?=$year?></td>
                                </tr>
                                <tr>
                                    <td>Periode</td>
                                    <td><?=month_name($month)?></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                            </thead>
                        </table>
                        <?php endif;?>
                        
                        <table>
							<thead>
								<tr>
									<th>No</th>
                     				<th>Date</th>
                    				<th>Time</th>
                    				<th>Pressure</th>
                    				<th>Temperature</th>
                    				<th>Corrected<br/>Vol. Index</th>
                    				<th>Corrected<br/>Volume</th>
                    				<th>Cummulative</th>
                    				<th>Flow Rate</th>
								</tr>
							</thead>
							<tbody>
                                <?php if(COUNT($head)):?>
                                <tr>
                    				<th>0</th>			 
                    				<th><?=indonesian_date($head['Date'])?></th>
                    				<th></th>
                    				<th></th>
                    				<th></th>
                    				<th><?=decimal($head['CorrrectedVolumeIndex'],0)?></th>
                    				<th></th>
                    				<th></th>
                    				<th></th>
                    			</tr>
                    			<tr>
                    				<th></th>			 
                    				<th></th>
                    				<th></th>
                    				<th></th>
                    				<th></th>
                    				<th></th>
                    				<th></th>
                    				<th></th>
                    				<th></th>
                    			</tr>
                                <?php endif;?>
                                <?php 
                                    $i=1;
                                    $total = 0;
                                    foreach($evc as $row): ?>
                                <tr>
                                    <td><?=$i?></td>
                                    <td><?=indonesian_date($row['Date'])?></td>
                                    <td><?=substr($row['Time'],0,5)?></td>
                                    <td><?=decimal($row['Pressure'],2)?></td>
                                    <td><?=decimal($row['Temperature'],2)?></td>
                                    <td><?=decimal($row['CorrectedVolumeIndex'],0)?></td>
                                    <td><?=decimal($row['CorrectedVolume'],0)?></td>
                                    <td><?=decimal($row['Cummulative'],0)?></td>
                                    <td><?=decimal($row['FlowRate'],1)?></td>
                                </tr>
                                <?php
                                    $i++;
                                    $total=$total + $row['CorrectedVolume']; 
                                    endforeach;?>
							</tbody>
                            <?php if(COUNT($evc)):?>
                            <tfoot>
                                <tr>
									<th></th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th><?=decimal($total,0)?></th>
                                    <th></th>
                                    <th></th>
								</tr>
                            </tfoot>
                            <?php endif;?>
						</table>
                        
                        <?php if($month!='-'):?>
                        <div class="action">
                            <?=anchor('billing-ar/daily_record/getEVCReset','Kembali Ke Awal');?>
			         	</div>
                        <?php endif;?>
                        
					</div>
				</div>
				<!-- end table -->